package com.zhongwang.business.module.baseCostManage.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Calendar;
import java.util.Date;

/**
 *  机加工时model
 * @author China.kxx
 * @date 2020/10/17 14:46
 */
@Data
public class InputMachiningModel {
    /**对应前台传值*/
    @ExcelIgnore
    private Integer kbId;
    @ExcelIgnore
    private Integer inputKind;
    @ExcelIgnore
    private Integer inputDesignType;
    @ExcelIgnore
    private Integer inputMacId;
    @ExcelIgnore
    private String inputPartName;
    @ExcelIgnore
    private String inputCostKind;

    /**机加工时、错误数据导出*/
    /**主键*/
    @ExcelIgnore
    private Integer id;

    /**外键：看板项目id*/
    @ExcelIgnore
    private Integer fkId;

    /**项目编号*/
    @ExcelIgnore
    private String fkCode;

    /**数据类型   0：预算用的计划单数据1：核算用的实际确认单数据*/
    @ExcelIgnore
    private Integer kind;

    /**设计专业数据类型   1机械2自动化3流体*/
    @ExcelIgnore
    private Integer designType;

    /**外键：成本录入项id*/
    @ExcelIgnore
    private Integer fkInputId;

    /**项目部位结构名称*/
    @ExcelIgnore
    private String partName;

    /**数据名称区分   设计\铆焊\涂装\装配\安装\热处理\外购件\原材料\外协\机加\运输直接显示的是成本录入项的文字*/
    @ExcelIgnore
    private String costKind;

    /**接收标识   0=未接收，1=已接收*/
    @ExcelIgnore
    private Integer macReceiveFlag;

    /**接收时间*/
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ExcelIgnore
    private Date macReceiveDate;

    /**上传人*/
    @ExcelIgnore
    private String uploadUser;

    /**上传时间*/
    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date uploadDatetime;

    /**是否删除   0：未删除1：删除*/
    @ExcelIgnore
    private Integer macDeleteFlag;

    /**外键：机加设备表视图Code*/
    @ExcelIgnore
    private String equCode;

    /**序号*/
    @ExcelProperty(value = "序号", index = 0)
    private String serial;

    /**图号*/
    @ExcelProperty(value = "图号", index = 1)
    private String diagramCode;

    /**零件名称*/
    @ExcelProperty(value = "零件名称", index = 2)
    private String diagramName;

    /**零件数量*/
    @ExcelProperty(value = "数量", index = 3)
    private Double macNum;

    /**加工工序*/
    @ExcelProperty(value = "工序", index = 4)
    private String macProcess;

    /**设备类型*/
    @ExcelProperty(value = "设备类型", index = 5)
    private String macDeviceType;

    /**设备型号*/
    @ExcelProperty(value = "设备型号", index = 6)
    private String macUnitType;

    /**加工工时*/
    @ExcelProperty(value = "加工工时", index = 7)
    private Double macHour;

    /**备注*/
    @ExcelProperty(value = "备注", index = 8)
    private String macRemark;

    /**错误信息*/
    @ExcelProperty(value = "错误信息", index = 9)
    private String reason;

}